package com.mia.props.common.entities;

import java.util.Random;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;

public class TileParticleEmitterSwitchable extends TileParticleEmitter {
   public void renderParticles(World world, int x, int y, int z, Random random) {
      if (this.isRunning) {
         super.renderParticles(world, x, y, z, random);
      }
   }

   public void updateEntity() {
      if (this.isRunning) {
         super.updateEntity();
      }
   }

   public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float var7, float var8, float var9) {
      if (world.isRemote) {
         return true;
      } else {
         this.switchIsRunning();
         return true;
      }
   }
}
